<?
session_start();
include"cek.php";
include"sambung.php";
$d=mysql_query("select * from data_karyawan where nik='$nik'");
$data=mysql_fetch_array($d);
$d2=mysql_query("select * from data_cuti where nik='$nik' order by id desc limit 1");
$data2=mysql_fetch_array($d2);
$d3=mysql_query("select * from data_karyawan where nik='$data[nik_atasan]'");
$data3=mysql_fetch_array($d3);
$d4=mysql_query("select * from data_karyawan where nik='$data[nik_support]'");
$data4=mysql_fetch_array($d4);
if($data2[status]=="1"){
$kep="Disetujui";
$data2[lama]=$data2[lama];
$mulai="<b>$data2[mulai]</b> s/d <b>$data2[masuk]</b>";
}else{
$kep="Tidak Disetujui";
$data2[lama]="-";
$mulai ="-";
}
?>
<html>

<head>
<meta http-equiv="Content-Language" content="id">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Laporan Cuti Karyawan</title>
<style>
<!--
body         { font-family: Arial; color: #000000; font-size: 14pt }
-->
</style>
</head>

<body>

<table border="0" width="656" cellspacing="0" cellpadding="0" id="table2">
        <tr>
                <td>
                &nbsp;</td>
                <td colspan="2">
                <p align="center" style="margin-top: 5px; margin-bottom: 5px"><br>
                <font size="4">PERMOHONAN / LAPORAN CUTI KARYAWAN</font></p>
                <p align="center" style="margin-top: 5px; margin-bottom: 5px">&nbsp;</p>
                <p align="center" style="margin-top: 5px; margin-bottom: 5px">&nbsp;</p>
                <p align="left" style="margin-top: 5px; margin-bottom: 5px">A. <u>DATA PEGAWAI</u></p>
                <table border="0" width="100%" cellspacing="0" cellpadding="0" id="table3">
                        <?echo"<tr>
                                <td width=\"160\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">1.&nbsp; N a m a / NIK</td>
                                <td>
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">: $data[nama]&nbsp;
                                /&nbsp; $data[nik]</td>
                        </tr>
                        <tr>
                                <td width=\"160\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">2. Tingkat</td>
                                <td>
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">: $data[tingkat]</td>
                        </tr>
                        <tr>
                                <td width=\"160\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">3. Jabatan</td>
                                <td>
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">: $data[jabatan]</td>
                        </tr>
                        <tr>
                                <td width=\"160\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">4. Tempat Bekerja</td>
                                <td>
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">: Area $data[posisi]</td>
                        </tr>
                        <tr>
                                <td width=\"160\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">5. Lama Cuti</td>
                                <td>
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">: $data2[lama] hari
                                kerja</td>
                        </tr>
                        <tr>
                                <td width=\"160\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">6. Alamat Cuti</td>
                                <td>
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">: $data2[alamat]</td>
                        </tr>
                        <tr>
                                <td width=\"160\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">7. Alasan Cuti&nbsp; *)</td>
                                <td>
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">: $data2[alasan]</td>
                        </tr>
                        <tr>
                                <td width=\"160\">&nbsp;</td>
                                <td>
                                <table border=\"0\" width=\"105%\" cellspacing=\"0\" cellpadding=\"0\" id=\"table4\">
                                        <tr>
                                                <td width=\"215\">
                                                <p style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</td>
                                                <td valign=\"bottom\">
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">
                                                Madiun, ";echo date("d M Y",$data2[tanggal]);
                                                echo"<br>
                                                Pemohon,</p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">
                                                <u>$data[nama]<br>
                                                </u>NIK : $data[nik]<br>
&nbsp;</td>
                                        </tr>
                                </table>
                                </td>
                        </tr>
                        <tr>
                                <td colspan=\"2\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">B. <u>CATATAN
                                PEJABAT KEPEGAWAIAN</u></td>
                        </tr>
                        <tr>
                                <td colspan=\"2\">
                                <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" id=\"table5\">
                                        <tr>
                                                <td width=\"375\" valign=\"top\">
                                                <p style=\"margin-top: 5px; margin-bottom: 5px\">
                                                 $data2[catatan]</td>
                                                <td valign=\"bottom\">
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">
                                                <span style=\"text-transform: uppercase\">ss. support</span><br>
                                                </p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">
                                                <u>$data4[nama]<br>
                                                </u>&nbsp;NIK :$data[nik_support]<br>
&nbsp;</td>
                                        </tr>
                                </table>
                                </td>
                        </tr>
                        <tr>
                                <td colspan=\"2\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">C. <u>KEPUTUSAN /
                                PENETAPAN PEJABAT YANG BERWENANG</u></td>
                        </tr>
                        <tr>
                                <td colspan=\"2\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;&nbsp;&nbsp;&nbsp;
                                $kep&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                selama :&nbsp;&nbsp;&nbsp;&nbsp; ( <b>$data2[lama]</b> ) hari kerja<br>
&nbsp;&nbsp;&nbsp;&nbsp; Mulai tanggal&nbsp;&nbsp;&nbsp; $mulai</td>
                        </tr>
                        <tr>
                                <td width=\"160\">
                                <p style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</td>
                                <td>
                                <table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" id=\"table6\">
                                        <tr>
                                                <td width=\"205\">
                                                <p style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</td>
                                                <td valign=\"bottom\">
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">
                                                <br>
                                                Pejabat yang berwenang<br></p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">&nbsp;</p>
                                                <p align=\"center\" style=\"margin-top: 5px; margin-bottom: 5px\">
                                                <u>$data3[nama]<br>
                                                </u>NIK : $data[nik_atasan]</td>
                                        </tr>
                                </table>
                                </td>
                        </tr>
                        <tr>
                                <td width=\"160\">&nbsp;</td>
                                <td>&nbsp;</td>
                        </tr>";
                        ?>
                </table>
                <p align="left">&nbsp;<p align="left">&nbsp;<p align="left">*) Diisi
                untuk Cuti Alasan Penting<br>
&nbsp;&nbsp;&nbsp; dan Cuti diluar Tanggungan Perusahaan.<hr></td>
        </tr>
        <tr>
                <td width="36">
                &nbsp;</td>
                <td width="299">
                REVISI : 01</td>
                <td width="321">
                <p align="right">01 - 09 - 1999</td>
        </tr>
</table>

</body>

</html>